﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/OneColumn.Master" AutoEventWireup="true" CodeBehind="OrderDetails.aspx.cs" Inherits="CS424_9pts.OrderDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
    <div class="order-details">
    <table width="100%">
        <tr>
            <td style="text-align: left;">
                <div class="page-title">
                    <h1>
                        Order Infomation</h1>
                </div>
            </td>
            <td style="text-align: right;">
                <asp:HyperLink runat="server" ID="lnkPrint" Text="Print" Target="_blank" CssClass="orderdetailsprintbutton" />
                <asp:LinkButton runat="server" ID="lbPDFInvoice" Text="GetPDFInvoice" CssClass="orderdetailsprintbutton" />
            </td>
        </tr>
    </table>
    <div class="clear">
    </div>
    <div class="info">
        <div class="order-overview">
        <asp:DataList ID="DataList1" runat="server">
            <ItemTemplate>
                <table width="100%" cellspacing="0" cellpadding="2" border="0">
                <tbody>
                    <tr>
                        <td colspan="2">
                            <b>Order#<asp:Label ID="lblOrderId" runat="server" Text='<%# Eval("Contract.ContractID") %>' />
                            </b>
                        </td>
                    </tr>
                    <tr>
                        <td class="smallText">
                            OrderDate:
                            <asp:Label ID="lblCreatedOn" runat="server"></asp:Label>
                        </td>
                        <td align="right" class="smallText">
                            OrderTotal:
                            <asp:Label ID="lblOrderTotal" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="smallText">
                            OrderStatus:
                            <asp:Label ID="lblOrderStatus" runat="server"></asp:Label>
                        </td>
                        <td colspan="2">
                        </td>
                    </tr>
                </tbody>
            </table>
            </ItemTemplate>
        </asp:DataList>
            
        </div>
        <div class="clear">
        </div>
        <div class="order-details-box">
            <table width="100%" cellspacing="0" cellpadding="2" border="0">
                <tbody>
                    <tr>
                        <td width="50%" align="left" style="vertical-align: top;">
                            <asp:DataList ID="DataList2" runat="server">
                                <ItemTemplate>
                                    <b>BillingAddress</b>
                                    <br />
                                    <asp:Literal ID="lBillingFirstName" runat="server"></asp:Literal>
                                    <asp:Literal ID="lBillingLastName" runat="server"></asp:Literal>
                                    <br />
                                    <div>
                                        Email:
                                        <asp:Literal ID="lBillingEmail" runat="server"></asp:Literal></div>
                                    <div>
                                        Phone:
                                        <asp:Literal ID="lBillingPhoneNumber" runat="server"></asp:Literal></div>
                                    <div>
                                        Fax:
                                        <asp:Literal ID="lBillingFaxNumber" runat="server"></asp:Literal></div>
                                    <asp:Panel ID="pnlBillingCompany" runat="server">
                                        <asp:Literal ID="lBillingCompany" runat="server"></asp:Literal></asp:Panel>
                                    <div>
                                        <asp:Literal ID="lBillingAddress1" runat="server"></asp:Literal></div>
                                    <asp:Panel ID="pnlBillingAddress2" runat="server">
                                        <asp:Literal ID="lBillingAddress2" runat="server"></asp:Literal></asp:Panel>
                                    <div>
                                        <asp:Literal ID="lBillingCity" runat="server"></asp:Literal>,
                                        <asp:Literal ID="lBillingStateProvince" runat="server"></asp:Literal>
                                        <asp:Literal ID="lBillingZipPostalCode" runat="server"></asp:Literal></div>
                                    <asp:Panel ID="pnlBillingCountry" runat="server">
                                        <asp:Literal ID="lBillingCountry" runat="server"></asp:Literal></asp:Panel>
                                </ItemTemplate>
                            </asp:DataList>
                            <br />
                            <br />
                            <br />
                            <br />
                            <%--<asp:PlaceHolder runat="server" ID="phVatNumber"><b>VAT</b>
                                <br />
                                <asp:Literal runat="server" ID="Literal1"></asp:Literal>
                                <br />
                                <br />
                            </asp:PlaceHolder>
                            <asp:Literal runat="server" ID="lVatNumber"></asp:Literal>--%>
                            <asp:DataList ID="DataList3" runat="server">
                                <ItemTemplate>
                                    <asp:PlaceHolder ID="phPaymentMethod" runat="server"><b>PaymentMethod</b>
                                        <br />
                                        <asp:Literal ID="lPaymentMethod" runat="server"></asp:Literal>
                                    </asp:PlaceHolder>
                      <br />
                       
                                    <asp:PlaceHolder ID="phWarrantytMethod" runat="server"><b>Warranty</b>
                                        <br />
                                        <asp:Literal ID="lWarrantyMethod" runat="server"></asp:Literal>
                                    </asp:PlaceHolder>
                     </ItemTemplate>
                            </asp:DataList>
                            
                        </td>
                        <td width="50%" align="left" runat="server" id="pnlShipping" style="vertical-align: top;">
                            <asp:DataList ID="DataList4" runat="server">
                                <ItemTemplate>
                                    <b>ShippingAddress</b>
                                    <br />
                                    <asp:Literal ID="lShippingFirstName" runat="server"></asp:Literal>
                                    <asp:Literal ID="lShippingLastName" runat="server"></asp:Literal>
                                    <br />
                                    <div>
                                        Email:
                                        <asp:Literal ID="lShippingEmail" runat="server"></asp:Literal>
                                    </div>
                                    <div>
                                        Phone:
                                        <asp:Literal ID="lShippingPhoneNumber" runat="server"></asp:Literal>
                                    </div>
                                    <div>
                                        Fax:
                                        <asp:Literal ID="lShippingFaxNumber" runat="server"></asp:Literal>
                                    </div>
                                    <asp:Panel ID="pnlShippingCompany" runat="server">
                                        <asp:Literal ID="lShippingCompany" runat="server"></asp:Literal>
                                    </asp:Panel>
                                    <div>
                                        <asp:Literal ID="lShippingAddress1" runat="server"></asp:Literal>
                                    </div>
                                    <asp:Panel ID="pnlShippingAddress2" runat="server">
                                        <asp:Literal ID="lShippingAddress2" runat="server"></asp:Literal>
                                    </asp:Panel>
                                    <div>
                                        <asp:Literal ID="lShippingCity" runat="server"></asp:Literal>
                                        ,
                                        <asp:Literal ID="lShippingStateProvince" runat="server"></asp:Literal>
                                        <asp:Literal ID="lShippingZipPostalCode" runat="server"></asp:Literal>
                                    </div>
                                    <asp:Panel ID="pnlShippingCountry" runat="server">
                                        <asp:Literal ID="lShippingCountry" runat="server"></asp:Literal>
                                    </asp:Panel>
                                </ItemTemplate>
                            </asp:DataList>
                            <br />
                            <br />
                            <asp:DataList ID="DataList5" runat="server">
                                <ItemTemplate>
                                    <b>ShippingMethod</b>
                                    <br />
                                    <asp:Label ID="lblShippingMethod" runat="server"></asp:Label>
                                    <asp:PlaceHolder ID="pnlTrackingNumber" runat="server">
                                        <br />
                                        <b>TrackingNumber</b></asp:PlaceHolder>
                                    <br />
                                    <asp:Label ID="lblTrackingNumber" runat="server"></asp:Label>
                                    <br />
                                    <br />
                                    <b>ShippedOn</b>
                                    <br />
                                    <asp:Label ID="lblShippedDate" runat="server"></asp:Label>
                                    <br />
                                    <b>DeliveredOn</b>
                                    <br />
                                    <asp:Label ID="lblDeliveredOn" runat="server"></asp:Label>
                                    <br />
                                    <asp:Label ID="lblOrderWeight" runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="clear">
        </div>
        <div class="section-title">
            Product(s)</div>
        <div class="clear">
        </div>
        <div class="products-box">
            <asp:GridView ID="gvOrderProductVariants" runat="server" AutoGenerateColumns="False"
                Width="100%">
            </asp:GridView>
            <div class="clear">
            </div>
            <div class="checkout-attributes">
                <asp:Literal runat="server" ID="lCheckoutAttributes"></asp:Literal>
            </div>
            <div class="clear">
            </div>
            <br />
            <asp:Button runat="server" ID="btnReOrder" CssClass="reorderbutton" Text="Reoder"
                ToolTip="Place item in your shopping cart !!" />
            <asp:PlaceHolder runat="server" ID="phReturnRequest">&nbsp;&nbsp;&nbsp;
                <asp:Button runat="server" ID="btnReturnItems" Text="Return Click" CssClass="returnitemsbutton" />
            </asp:PlaceHolder>
        </div>
        <div class="clear">
        </div>
        <table width="100%" cellspacing="0" cellpadding="2" border="0">

            <tbody>
              <asp:DataList ID="DataList6" runat="server">
              <ItemTemplate>
                <tr>
                    <td width="100%" align="right">
                        <b>Order.Sub-Total:</b>
                    </td>
                    <td align="right">
                        <span style="white-space: nowrap;">
                            <asp:Label ID="lblOrderSubtotal" runat="server"></asp:Label>
                        </span>
                    </td>
                </tr>
                <asp:PlaceHolder runat="server" ID="phOrderSubTotalDiscount">
                    <tr>
                        <td width="100%" align="right">
                            <b>Discount:</b>
                        </td>
                        <td align="right">
                            <span style="white-space: nowrap;">
                                <asp:Label ID="lblOrderSubTotalDiscount" runat="server"></asp:Label>
                            </span>
                        </td>
                    </tr>
                </asp:PlaceHolder>
                <tr runat="server" id="pnlShippingTotal">
                    <td width="100%" align="right">
                        <b>Shipping:</b>
                    </td>
                    <td align="right">
                        <span style="white-space: nowrap;">
                            <asp:Label ID="lblOrderShipping" runat="server"></asp:Label>
                        </span>
                    </td>
                </tr>
                <asp:PlaceHolder runat="server" ID="phPaymentMethodAdditionalFee">
                    <tr>
                        <td width="100%" align="right">
                            <b>PaymentMethodAdditionalFee:</b>
                        </td>
                        <td align="right">
                            <span style="white-space: nowrap;">
                                <asp:Label ID="lblPaymentMethodAdditionalFee" runat="server"></asp:Label>
                            </span>
                        </td>
                    </tr>
                </asp:PlaceHolder>
                <asp:Repeater runat="server" ID="rptrTaxRates">
                    <ItemTemplate>
                        <tr>
                            <td width="100%" align="right">
                                <b>
                                    <asp:Literal runat="server" ID="lTaxRateTitle"></asp:Literal>:</b>
                            </td>
                            <td align="right">
                                <span style="white-space: nowrap;">
                                    <asp:Literal runat="server" ID="lTaxRateValue"></asp:Literal>
                                </span>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:PlaceHolder runat="server" ID="phTaxTotal">
                    <tr>
                        <td width="100%" align="right">
                            <b>Tax:</b>
                        </td>
                        <td align="right">
                            <span style="white-space: nowrap;">
                                <asp:Label ID="lblOrderTax" runat="server"></asp:Label>
                            </span>
                        </td>
                    </tr>
                </asp:PlaceHolder>
                <asp:PlaceHolder runat="server" ID="phOrderTotalDiscount">
                    <tr>
                        <td width="100%" align="right">
                            <b>Discount:</b>
                        </td>
                        <td align="right">
                            <span style="white-space: nowrap;">
                                <asp:Label ID="lblOrderTotalDiscount" runat="server"></asp:Label>
                            </span>
                        </td>
                    </tr>
                </asp:PlaceHolder>
                <asp:Repeater runat="server" ID="rptrGiftCards">
                    <ItemTemplate>
                        <tr>
                            <td width="100%" align="right">
                                <b>
                                    <asp:Literal runat="server" ID="lGiftCard"></asp:Literal>:</b>
                            </td>
                            <td align="right">
                                <span style="white-space: nowrap;">
                                    <asp:Label ID="lblGiftCardAmount" runat="server"></asp:Label>
                                </span>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
                <asp:PlaceHolder runat="server" ID="phRewardPoints">
                    <tr>
                        <td width="100%" align="right">
                            <b>
                                <asp:Literal runat="server" ID="lRewardPointsTitle"></asp:Literal>:</b>
                        </td>
                        <td align="right">
                            <span style="white-space: nowrap;">
                                <asp:Label ID="lblRewardPointsAmount" runat="server"></asp:Label>
                            </span>
                        </td>
                    </tr>
                </asp:PlaceHolder>
                <tr>
                    <td width="100%" align="right">
                        <b>OrderTotal:</b>
                    </td>
                    <td align="right">
                        <b><span style="white-space: nowrap;">
                            <asp:Label ID="lblOrderTotal2" runat="server"></asp:Label>
                        </span></b>
                    </td>
                </tr>
              </ItemTemplate>
              </asp:DataList>
            </tbody>
        
        </table>
        <div class="clear">
        </div>
        <div>
        </div>
        <div class="clear">
        </div>
        <div class="section-title" runat="server" id="pnlOrderNotesTitle">
            Notes
        </div>
        <div class="clear">
        </div>
        <div class="ordernotes-box" runat="server" id="pnlOrderNotes">
            <asp:GridView ID="gvOrderNotes" runat="server" AutoGenerateColumns="False" Width="100%">
                <Columns>
                    <asp:TemplateField HeaderText="CreatedOn" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="30%"
                        ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <%--    <%#DateTimeHelper.ConvertToUserTime((DateTime)Eval("CreatedOn"), DateTimeKind.Utc).ToString()%>--%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="$NopResources:Order.OrderNotes.Note" ItemStyle-Width="70%"
                        HeaderStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <div style="padding-left: 10px; padding-right: 10px; text-align: left;">
                                <%--  <%# ((OrderNote)Container.DataItem).FormatOrderNoteText() %>--%>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
    </div>
</div>
</asp:Content>
